package com.ruoyi.qywx.getway.entity;

import com.ruoyi.qywx.entity.ExtContact;
import lombok.Data;

import java.util.List;

/**
 * @author : hcl
 * @Date : 2023/8/22 16:21
 */
@Data
public class QyExternalContact {
    private String external_userid;
    private String name;
    private String position;
    private String avatar;
    private String corp_name;
    private String corp_full_name;
    private Integer type;
    private Integer gender;
    private String unionid;
    private String next_cursor;

    public ExtContact getExternalContact(Long teamId) {
        ExtContact e = new ExtContact();
        e.setTeamId(teamId);
        e.setExtUserId(external_userid);
        e.setName(name);
        e.setAvatar(avatar);
        e.setType(type);
        e.setGender(gender);
        e.setPosition(position);
        e.setCorpName(corp_name);
        e.setCorpFullName(corp_full_name);
        e.setIsDelete(false);
        return e;
    }
}
